package com.bdqn.t308.service;

import com.bdqn.t308.dao.SysUserDao;
import com.bdqn.t308.pojo.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 业务逻辑层实现类
 */
@Service("userService")
public class SysUserServiceImpl implements  SysUserService {

    @Autowired
    private SysUserDao sysUserDao;

    /**
     * 用户登录
     * @param sysUser
     * @return
     */
    @Override
    public SysUser login(SysUser sysUser) {

        return sysUserDao.findUser(sysUser);
    }

    @Override
    public int addUser(SysUser sysUser) {

        return sysUserDao.addUser(sysUser);
    }


}
